GM.Name 	= "Infection"
GM.Author 	= "RabidToaster and Devenger"
GM.Email 	= ""
GM.Website 	= "http://infection.rabidtoaster.com"

-- Useful for debugging.
function printd(...)
	if GetConVarNumber("developer") == 0 then return end
	
	local s = ""
	
	// Gets the filename of the function calling printd, and strips it down to lastfolder/filename.
	local info = debug.getinfo(2, "S")
	if info.short_src then
		local found = false
		for p = string.len(info.short_src), 1, -1 do
			local c = string.sub(info.short_src, p, p)
			if c == "\\" || c == "/" then
				if found then
					s = string.sub(info.short_src, p + 1) .. ":\t"
					break
				end
				found = true
			end
		end
	end
	
	for _, v in ipairs({...}) do
		s = s .. tostring(v) .. " "
	end
	s = string.sub(s, 1, -2) // Take off the last space.
	
	MsgN(s)
end

-- Useful for base GM values.
function Default(name, val)
	local g = GM or GAMEMODE
	g[name] = g[name] or val
end

-- Structure file.
include("structure.lua")